package com.xteam.xnetworkdisk.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 用户表
 * 
 * @author xiaozhiyong
 * @email xiaozhiyong03@gmail.com
 * @date 2024-08-09 22:08:10
 */
@Data
@TableName("user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	public static final String INVALID = "N";
	public static final String VALID = "Y";
	/**
	 * 用户id
	 */
	@TableId(value = "u_id", type = IdType.AUTO)
	private Integer uId;
	/**
	 * 用户姓名
	 */
	private String name;
	/**
	 * 用户账号
	 */
	private String username;
	/**
	 * 用户密码
	 */
	private String password;
	/**
	 * 电话
	 */
	private String phone;
	/**
	 * 性别
	 */
	private Integer sex;
	/**
	 * 年龄
	 */
	private Integer age;
	/**
	 * 盐
	 */
	private String salt;
	/**
	 * 用户类别ID
	 */
	private Integer roleId;
	/**
	 * 验证码
	 */
	private String verifyCode;
	/**
	 * 验证码时间
	 */
	private Date verifyCodeTime;
	/**
	 * 注册时间
	 */
	private Date registTime;
	/**
	 * 头像
	 */
	private String avatar;
	/**
	 * 验证码是否有效
	 */
	private String isValid;
	/**
	 * 使用的空间
	 */
	private Long useSpace;
	/**
	 * 总空间
	 */
	private Long totalSpace;

	/**
	 * city
	 */
	private String city;

	/**
	 * background
	 */
	private String background;
	

}
